package demo1;

public class demo_4_1 {
    public static int findMax(int a[]){
        int max = 0;
        for (int i = 0; i < a.length; i++) {
            if (max < a[i]){
                max = a[i];
            }
        }
        return max;
    }
}
